//
//  PHCell.m
//  LastTemp
//
//  Created by apple on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "PHCell.h"

@implementation PHCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.nameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.nameLabel];
        self.descLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.descLabel];
        self.pic_urlImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.pic_urlImageView];
        self.sjImageView = [[UIImageView alloc] init];
        self.sjImageView.image = [UIImage imageNamed:@"youlasanjiao"];
        [self.contentView addSubview:self.sjImageView];
        
        [_nameLabel release];
        [_descLabel release];
        [_pic_urlImageView release];
        [_sjImageView release];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.pic_urlImageView.frame = CGRectMake(10, 10, 80, 80);
    self.nameLabel.frame = CGRectMake(100, 20, self.contentView.frame.size.width - 120, 25);
    self.descLabel.frame = CGRectMake(100, 55, self.contentView.frame.size.width - 120, 25);
    self.sjImageView.frame = CGRectMake(self.contentView.frame.size.width - 20, self.contentView.frame.size.height / 2 - 10, 20, 20);
}
-(void)dealloc
{
    [_nameLabel release];
    [_descLabel release];
    [_pic_urlImageView release];
    [_sjImageView release];
    [super dealloc];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
